package battle.battleFightData
{
	public class BattleMagicData implements XMLSerializable
	{
		private  var _name:String;
		private var _x:Number;
		private var _y:Number;
		
		public function BattleMagicData()
		{
		}
		
		public function get y():Number
		{
			return _y;
		}

		public function set y(value:Number):void
		{
			_y = value;
		}

		public function get x():Number
		{
			return _x;
		}

		public function set x(value:Number):void
		{
			_x = value;
		}

		public function get name():String
		{
			return _name;
		}

		public function set name(value:String):void
		{
			_name = value;
		}

		public function toXml():XML
		{
			var xmlObj:XML = <fmagic/>;
//			xmlObj.@name = _name;
//			xmlObj.@x = toRoundString(_x);
//			xmlObj.@y = toRoundString(_y);
			return xmlObj;
		}
		
		public function fromXml(xml:XML):void
		{
			this._name = xml.@name;
			this._x = xml.@x;
			this._y = xml.@y;
		}
	}
}